<template>
  <div>
    <div class="register">
      <div class="register_first">
        <div class="rigister_new">
          <img src="../../assets/img/man.png" alt="" />
          <p>{{ login }}</p>
        </div>
        <div class="rigister_old">
          <img src="../../assets/img/qrcode.png" alt="" />
          <img src="../../assets/img/setting.png" alt="" />
        </div>
      </div>

      <div class="heart">
        <img src="../../assets/img/noLogin.png" alt="" />
      </div>
      <div class="order">
        <div class="order_div" v-for="item in nows" :key="item.id">
          <p>0</p>
          <span>{{ item.text }}</span>
        </div>
      </div>

      <div class="banner">
        <div class="banner_div">
          <p>我的订单</p>
          <div class="banner_div_new">
            <p>全部</p>
            <van-icon name="arrow" />
          </div>
        </div>
        <div class="banner_first">
          <div class="banner_first_div" v-for="item in water" :key="item.id">
            <img :src="item.pic" alt="" @click="$router.push('/bepaid')"/>
            <p>{{ item.title }}</p>
          </div>
        </div>
      </div>

      <div class="contern">
        <div class="contern_div" v-for="item in list" :key="item.id">
          <img :src="item.pic" alt="" />
        </div>
      </div>

      <div class="later">
        <div class="later_div" v-for="item in newlist" :key="item.id">
          <img :src="item.pic" alt="" />
          <p>{{ item.title }}</p>
        </div>
      </div>

      <div class="writing">
        <p>- 热门产品 -</p>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      login: "登录/注册",
      nows: [{ text: "我的积分" }, { text: "优惠劵" }, { text: "收藏夹" }],
      water: [
        { pic: require("../../assets/img/icon_unPay.png"), title: "待支付" },
        {
          pic: require("../../assets/img/icon_historyOrder.png"),
          title: "确认中",
        },
        { pic: require("../../assets/img/icon_unTravel.png"), title: "待出行" },
        {
          pic: require("../../assets/img/icon_hasTravel.png"),
          title: "待点评",
        },
      ],
      list: [
        { pic: require("../../assets/img/customerBanner.png") },
        { pic: require("../../assets/img/publicNumBanner.png") },
      ],
      newlist: [
        {
          pic: require("../../assets/img/icon_historyOrder.png"),
          title: "历史订单",
        },
        {
          pic: require("../../assets/img/icon_customerOrder.png"),
          title: "定制订单",
        },
        {
          pic: require("../../assets/img/icon_hotelOrder.png"),
          title: "酒店订单",
        },
        { pic: require("../../assets/img/icon_cdkey.png"), title: "我的兑换" },
      ],
    };
  },
};
</script>

<style lang="scss" scoped>
.register {
  width: 100%;
  background-image: url("../../assets/img/headerBg2.jpg");
  padding: 10px;
  .register_first {
    width: 100%;
    height: 64px;
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    .rigister_new {
      display: flex;
      img {
        width: 64px;
        height: 64px;
      }
      p {
        font-size: 17px;
        color: black;
        font-weight: bold;
        line-height: 64px;
        padding-left: 10px;
      }
    }
    .rigister_old {
      display: flex;
      width: 72px;
      height: 64px;
      img:nth-child(1) {
        width: 24px;
        height: 24px;
        transform: translate(50%, 80%);
        margin-right: 10px;
      }
      img:nth-child(2) {
        width: 24px;
        height: 24px;
        transform: translate(50%, 80%);
      }
    }
  }
  .heart {
    width: 100%;
    height: 116px;
    img {
      width: 351px;
      height: 116px;
      display: block;
      margin: 0 auto;
    }
  }

  .order {
    width: 100%;
    height: 80px;
    background-color: #fff;
    margin-top: 15px;
    border-radius: 8px;
    display: flex;
    .order_div {
      width: 117px;
      height: 80px;
      display: flex;
      flex-direction: column;
      justify-content: center;
      p {
        font-size: 18px;
        text-align: center;
        font-weight: bold;
      }
      span {
        font-size: 13px;
        display: flex;
        justify-content: center;
      }
    }
  }

  .banner {
    margin-top: 10px;
    width: 100%;
    height: 120px;
    background-color: #fff;
    border-radius: 5px;
    padding: 16px;
    .banner_div {
      width: 100%;
      height: 25px;
      display: flex;
      justify-content: space-between;
      p {
        font-size: 16px;
        font-weight: bold;
      }
      .banner_div_new {
        width: 44px;
        display: flex;
        align-items: flex-start;
        p {
          font-size: 14px;
          font-weight: 300;
          color: #9c9c9c;
        }
        ::v-deep(.van-icon-arrow) {
          top: 1.5px;
        }
      }
    }
    .banner_first {
      width: 80px;
      height: 53px;
      display: flex;
      .banner_first_div {
        margin-top: 10px;
        img {
          width: 32px;
          height: 32px;
          display: block;
          margin: 0 auto;
        }
        p {
          width: 80px;
          height: 16px;
          font-size: 4px;
          text-align: center;
          margin-top: 5px;
        }
      }
    }
  }

  .contern {
    width: 100%;
    height: 80px;
    overflow: hidden;
    margin-top: 10px;
    display: flex;
    justify-content: space-between;
    .contern_div {
      width: 170px;
      height: 80px;
      border-radius: 5px;
      img {
        width: 170px;
        height: 80px;
      }
    }
  }

  .later {
    width: 100%;
    height: 85px;
    background-color: #fff;
    border-radius: 5px;
    margin-top: 10px;
    padding: 16px;
    display: flex;
    .later_div {
      width: 80px;
      height: 53px;
      img {
        width: 32px;
        height: 32px;
        display: block;
        margin: 0 auto;
      }
      p {
        text-align: center;
        margin-top: 5px;
      }
    }
  }

  .writing {
    width: 100%;
    height: 20px;
    margin-bottom: 50px;
    margin-top: 10px;
    p {
      font-size: 14px;
      text-align: center;
    }
  }
}
</style>
